﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Core
{
    public static class PageType
    {
        /// <summary>
        /// 虚拟页面
        /// </summary>
        public const string Virtual = "VIRTUAL";
        /// <summary>
        /// 物理页面
        /// </summary>
        public const string Native = "NATIVE";
    }

    /// <summary>
    /// 导航目标地址类型
    /// </summary>
    public static class NavigationTargetType
    {
        public const string Page = "PAGE";
        public const string FullUrl = "FULLURL";
    }

    /// <summary>
    /// 快捷方式引用类型
    /// </summary>
    public static class ShortcutRefType
    {
        public const string Navigation = "NAVIGATION";
        public const string FullUrl = "FULLURL";
    }

    /// <summary>
    /// 角色类型
    /// </summary>
    public static class RoleType
    {
        /// <summary>
        /// 可以直接分配用户的角色
        /// </summary>
        public const string System = "ROLE.LEAF";
        /// <summary>
        /// 不能直接分配用户的角色
        /// </summary>
        public const string Module = "ROLE.ROOT";
    }

    public static class RolePrivilegeType
    {
        public const string Own = "OWN";
        public const string Inherited = "INHERITED";
        public const string Complex = "COMPLEX";
    }
}
